<?php

namespace App\Console\Commands\OpenShop\Contract;


use App\Service\OpenShop\ContractTemplateService;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Console\Command;
use Illuminate\Validation\ValidationException;
use Kuafu\GeneralFs\BuildFs;

class UpdateContractTemplateStatusCommand extends Command
{

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'openShop:updateContractTemplateStatus';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '更新签约开店的加盟政策状态';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * @throws GuzzleException
     * @throws ValidationException
     */
    public function handle()
    {
        $res = ContractTemplateService::updateStatus();
        $this->info('同步完成,res'.$res);
    }


}
